package com.hs.srm.admin.modules.requisition.service;

import com.baomidou.mybatisplus.service.IService;
import com.hs.srm.admin.modules.requisition.entity.SamplePurchRequestItemEntity;
import com.hs.srm.admin.modules.requisition.vo.SupplyGoodsEntityVO;
import com.hs.srm.common.utils.PageUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author ych
 * @since 2020-05-09 09:12:05
 */
public interface SamplePurchRequestItemService extends IService<SamplePurchRequestItemEntity> {
    public PageUtils selectDetailPage(Map<String, Object> params);

    SamplePurchRequestItemEntity findbypkId(String pkId);

    void updateAll(SamplePurchRequestItemEntity samplePurchRequestItemEntity);

    int updateStatus(String requestCode, String purchRequestItemCode);

    List<SupplyGoodsEntityVO> getSampleDistributeById(ArrayList<String> idList);

    //改变货源状态
    boolean changeGoodsStatus(int goodsStatus, String npkId);
}